﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="GUESTSMANAGEMENT.Default" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register Src="~/View/User/gridUser.ascx" TagName="User" TagPrefix="GMUser" %>
<%@ Register Src="~/View/Guets/grdGuests.ascx" TagName="Guests" TagPrefix="GMGuests" %>
<%@ Register Src="~/View/Event/grdEvent.ascx" TagName="gEvent" TagPrefix="GMEvent" %>
<%@ Register Src="~/View/WebUserControl1.ascx" TagName="Teste" TagPrefix="test" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Guest Management</title>
    <link rel="stylesheet" type="text/css" href="Content/Css/Style.css"/>
    <script src="Content/Js/JavaScript.js" type="text/javascript"></script>   
</head>
<body>
    <form id="form" runat="server">
        <ext:ScriptManager ID="ScriptManager" runat="server" Theme="Slate">
        </ext:ScriptManager>
        
        <ext:Desktop ID="Desktop" runat="server" BackgroundColor="White" AutoShow="true" ShortcutTextColor="Black" >
            <%--Alterar Texto Botão Iniciar  --%>
            <StartButton Text="Iniciar" IconCls="start-button" />
            <%--Define opções Acesso Rápido Botão Iniciar --%>
            <Modules>
                <ext:DesktopModule ModuleID="DesktopModule1" WindowID="winGrdUser">
                    <Launcher ID="Launcher1" runat="server" Text="Usuários" Icon="User" ></Launcher>
                </ext:DesktopModule>
                <ext:DesktopModule ModuleID="DesktopModule2" WindowID="winGrdGuests">
                    <Launcher ID="Launcher2" runat="server" Text="Convidados" Icon="Group" ></Launcher>
                </ext:DesktopModule>
                <ext:DesktopModule ModuleID="DesktopModule3" WindowID="winGrdEvent">
                    <Launcher ID="Launcher3" runat="server" Text="Eventos" Icon="World" ></Launcher>
                </ext:DesktopModule>
                <ext:DesktopModule ModuleID="DesktopModule4" WindowID="winGrdGuestsList">
                    <Launcher ID="Launcher4" runat="server" Text="Eventos" Icon="World" ></Launcher>
                </ext:DesktopModule>
            </Modules>
            <%-- Define Atalhos para área de trabalho  --%>
            <Shortcuts>
                <ext:DesktopShortcut ModuleID="DesktopModule1" Text="Usuários" IconCls="icon-Usuario" />
            </Shortcuts>
            <Shortcuts>
                <ext:DesktopShortcut ModuleID="DesktopModule2" Text="Convidados" IconCls="icon-Usuario" />
            </Shortcuts>
            <Shortcuts>
                <ext:DesktopShortcut ModuleID="DesktopModule3" Text="Eventos" IconCls="icon-Usuario" />
            </Shortcuts>
            <Shortcuts>
                <ext:DesktopShortcut ModuleID="DesktopModule4" Text="Eventos" IconCls="icon-Usuario" />
            </Shortcuts>
            <%-- Define as opções de Menu do Botão Iniciar (StartMenu)--%>
            <StartMenu>
                <ToolItems>
                    <ext:MenuItem Text="Sair" Icon="Disconnect">
                        <AjaxEvents>
                            <Click OnEvent="Logout">
                                <EventMask ShowMask="true" Msg="Good Bye..." MinDelay="1000" />
                            </Click>
                        </AjaxEvents>
                    </ext:MenuItem>

                </ToolItems>            
            </StartMenu>
        </ext:Desktop>
        <GMUser:User ID="GMUser" runat="server" />
        <GMGUests:Guests ID="GMGuests" runat="server" />
        <GMEvent:gEvent ID="GMEvent" runat="server" />
        <test:Teste ID="test" runat="server" />
    </form>
</body>
</html>
